<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The parallel\Events\Event class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="parallel-events-input.remove.html">« parallel\Events\Input::remove</a></li>
      <li style="float: right;"><a href="class.parallel-events-event-type.html">parallel\Events\Event\Type »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.parallel.html">parallel</a></li>
    <li>The parallel\Events\Event class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.parallel-events-event" class="reference">

 <h1 class="title">The parallel\Events\Event class</h1>
 

 <div class="partintro"><p class="verinfo">(0.9.0)</p>

  <div class="section">
   <h2 class="title">Event Objects</h2>
   <p class="para">
    When an Event is returned, <var class="varname">Event::$object</var> shall be removed from the loop that returned it, should the event be a write event
    the <span class="classname"><strong class="classname">Input</strong></span> for <var class="varname">Event::$source</var> shall also be removed.
   </p>
  </div>
  <div class="section" id="parallel-events-event.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">parallel\Events\Event</strong>
     </span>
     {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Shall be one of <span class="classname"><strong class="classname">Event\Type</strong></span> constants */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="type">int</span>
      <var class="varname">$<var class="varname">type</var></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Shall be the source of the event (target name) */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">string</span>
      <var class="varname">$<var class="varname">source</var></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Shall be either Future or Channel */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type">object</span>
      <var class="varname">$<var class="varname">object</var></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Shall be set for Read/Error events */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
      <var class="varname">$<var class="varname">value</var></var>;</div>


   }</div>


  </div>

 </div>

</div>
</div></div></body></html>